Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


GeometryChanged

The GeometryChanged method is called to notify this part that the clip shape or external transform (or both) of one of this part's facets has changed.

void GeometryChanged (
                  in ODFacet facet,
                  in ODBoolean clipShapeChanged, 
                  in ODBoolean externalTransformChanged);
facet
A reference to a facet with the changed geometry.
clipShapeChanged
kODTrue if the clip shape has changed, otherwise kODFalse.
externalTransformChanged
kODTrue if the external transform has changed, otherwise kODFalse.
DISCUSSION
OpenDoc calls this method when this part's facet changes its clip shape, external transform, or both, or when this part's facet is repositioned or clipped differently.

Your part's GeometryChanged method should use the new clip shape for display. If your part only displays in response to update events, it does not need to do anything but check the clip shape each time it draws. If your part supports asynchronous display (for example, clocks and movies), it must notice the new clip shape and limit its display accordingly.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFacet
The specified facet is not a facet of this part.
SEE ALSO
The ODFacet::ChangeGeometry method (page 234).
"The GeometryChanged Method" on page 74 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Embedded-Part Responsibilities" on page 151 in OpenDoc Programmer's Guide.
"Zooming" on page 230 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help